package zoran.wang.calculate.impl;

import org.springframework.stereotype.Component;
import zoran.wang.calculate.Calculation;

/**
 * description：
 *
 * @author wangzhuo
 * @date 2022/3/19 19:23
 * @Email zoranwang@yeah.net
 */
@Component
public class Calculator implements Calculation {
    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int div(int a, int b) {
        return a / b;
    }

    public int add_3(int a, int b, int c) {
        return a + b + c;
    }

    public int function(){
        return 666;
    }
}
